﻿// =================================================================== 
// 项目说明
//====================================================================
// lsc @Copy Right 2019
// 文件： PaymentEntity.cs
// 项目名称：斑马车务
// 创建时间：2019-10-30
// 负责人：lsc
// ===================================================================

using System;
using Dapper.Extensions;

namespace YouWei.Infrastructure.Entity
{
	/// <summary>
	///订单支付信息数据实体  
	/// </summary>
    [PrimaryKey("PayId")]
	public class Payment
	{
		///<summary>
		///订单支付信息
		///</summary>
		public Payment()
		{
		}	
    
		
		///<summary>
		///支付Id
		///</summary>
        [Column("PayId","支付Id")]
        public int PayId { get; set; }

		///<summary>
		///支付平台（1：微信，2：支付宝）
		///</summary>
        [Column("PayPlatform","支付平台（1：微信，2：支付宝）")]
        public int PayPlatform { get; set; }

		///<summary>
		///1-车主卡
		///</summary>
        [Column("BusinessType","1-车主卡")]
        public int BusinessType { get; set; }

		///<summary>
		///业务Id
		///</summary>
        [Column("BusinessID","业务Id")]
        public long BusinessID { get; set; }

		///<summary>
		///支付金额
		///</summary>
        [Column("Price","支付金额")]
        public decimal Price { get; set; }

		///<summary>
		///创建时间
		///</summary>
        [Column("CreatedDate","创建时间")]
        public DateTime CreatedDate { get; set; }

		///<summary>
		///平台交易号
		///</summary>
        [Column("PlatformCode","平台交易号")]
        public string PlatformCode { get; set; }

		///<summary>
		///有效状态
		///</summary>
        [Column("IsActive","有效状态")]
        public int IsActive { get; set; }

		///<summary>
		///支付平台返回交易信息
		///</summary>
        [Column("PlatformResult","支付平台返回交易信息")]
        public string PlatformResult { get; set; }

	}
}